import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询大模型配置列表
export function listHumanModelManager(query) {
  return request({
    url: '/humanModel/manage/selectHumanModelManagerList',
    method: 'get',
    params: query
  })
}


// 新增aiui配置
export function insertHumanModelManager(data) {
  return request({
    url: '/humanModel/manage/insertHumanModelManager',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectHumanModelManager(uid) {
  return request({
    url: '/humanModel/manage/selectHumanModelManager/' + parseStrEmpty(uid),
    method: 'get',
  })
}


//删除大模型配置
export function deleteHumanModelManager(data) {
  return request({
    url: '/humanModel/manage/deleteHumanModelManager',
    method: 'post',
    data: data
  })
}

// 修改大模型状态
export function updateHumanModelManagerStatus(data) {
  return request({
    url: '/humanModel/manage/updateHumanModelManagerStatus',
    method: 'post',
    data: data
  })
}


// 修改aiui配置信息
export function updateHumanModelManager(data) {
  return request({
    url: '/humanModel/manage/updateHumanModelManager',
    method: 'post',
    data: data
  })
}
